#!/bin/bash
# Last Modified: Wed Dec 19 09:47 PM 2007 -0800 by kraken

[ -f "install.rdf" ] || exit 1

BUILDDIR=/tmp/hellafox-build
VERSION=$(grep 'em:version' install.rdf | cut -d'>' -f2 | cut -d'<' -f1 | cut -d\" -f2)

rm -rf $BUILDDIR
svn export https://hellafox.googlecode.com/svn/branches/ff-3.0 $BUILDDIR
pushd $BUILDDIR
./build.sh
popd
mv $BUILDDIR/hellafox.xpi hellafox-$VERSION.xpi
echo "hellafox-$VERSION.xpi built."

# vim: ff=unix:et:sr:sw=4:ts=4
